﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="h5.aspx.cs" Inherits="_Default" ResponseEncoding="utf-8" %>

<%@ OutputCache Duration="360000" VaryByParam="none" %>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="htmlID" runat="server">

<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="keywords" content="网址导航,web3.0,网页应用" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <link rel="shortcut icon" href="favicon.ico"> 
    <title></title>
    <script src="Scripts/jquery-3.1.0.js">
    </script>
    <%--<link href="index.css" rel="stylesheet" type="text/css" />--%>
    <%--<link href="http://192.168.1.76:8028/h5.css" rel="stylesheet" type="text/css" />--%>
    <link href="./h5.css" rel="stylesheet" type="text/css" />
    <link href="rightMenu.css" rel="stylesheet" type="text/css" />

    <style>
        .mask {
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            position: fixed;
            z-index: 998 !important;
            top: 0
        }

        .makeSure {
            position: fixed;
            top: 30%;
            z-index: 999 !important;
            font-size: 5vw;
            position: relative;
            width: 80vw;
            height: 50vw;
            margin-left: 10vw;
            text-align: center;
            padding: 13vw 5vw;
            box-sizing: border-box;
            background: #fff;
            border-radius: 10px;
        }

        .makeSure>p>img {
            width: 7vw;
            vertical-align: top;
            margin-right: 1vw;
            position: relative;
            top: 2px
        }

        .makeSure>div {
            width: 17vw;
            height: 10vw;
            line-height: 10vw;
            border-radius: 5px;
            color: #fff;
            position: absolute;
            bottom: 10vw;
        }

        .chooseQuit {
            background: #9d9d9d;
            left: 15vw;
        }

        .chooseYes {
            background: #5e8f44;
            right: 15vw;
        }
        
        #duihuakuang {
            display: none;
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            z-index: 999 !important
        }
        
    </style>

</head>

<body>
    <div id="duihuakuang">
        <div class="mask"></div>
        <div class="makeSure">
            <p><img src="./image/warn.png">确认删除？</p>
            <div class="chooseQuit" onclick="quxiao()">取消</div>
            <div class="chooseYes" onclick="queren()">确定</div>
        </div>
    </div>


    <div id="outer" style="width: 100%;">
        <div id="fade" class="black_overlay">
        </div>
        <div id="divCenter">
            <div id="idFourHead" style="width: 100%;">
                <table id="frameTable">
                    <tr>
                        <%--<td>
                                        <div id="menuOnLeft_001" class="div_menuOnLeft_001">
                                            navi
                                        </div>
                                        </td>
                        --%>
                        <td>
                            <table id="idFourHeadTable">
                                <tr>
                                    <td>
                                        <table id="menu_001" class="menu" style="margin-top:24px">
                                            
                                            <tr class="clear" >
                                                <td>
                                                    <a id="signonID" href="javascript:void(0)" onclick="g.lightOn = new LightOn($('light'));" title="登录"></a>
                                                </td>
                                                <td>
                                                    <a id="hostID" href="#/main" class="linkOne" title="登录"></a>
                                                </td>
                                                <td>
                                                    <a id="publicID" href="#/public" class="linkOne" title="登录"></a>
                                                </td>
                                                
                                                        <td onclick="handle(event)">
                                                            
                                                            <a id="setting" title="设置"><span class="set_font" >设置</span><i></i>
                                                                <div id="body" onclick="bodyclick(event)">
                                                                </div> 
                                                                <div class="update_box" id="boxdis"  onclick="window.location.href = 'updatepass.aspx';"><div class="update_box_min"><div id="triangle-up"></div><div class="circle"></div><span>修改密码</span></div></div>
                                                            </a>
          
                                                        </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <div id="outerSearch" style="width: 100%;">
                                            <div class="tabbox">
                                                <div class="tabmenu">
                                                    <ul>
                                                        <li style="background-color: #fff">&nbsp;
                                                        </li>
                                                        <li onclick="tabChange(this,'tabcontent','0')" class="cli">网页
                                                        </li>
                                                        <li onclick="tabChange(this,'tabcontent','1')">图片
                                                        </li>
                                                        <li
                                                            style="width: calc(100% - 183px); background-color: #fff; border-right: #fff 1px solid;">
                                                            &nbsp;
                                                        </li>
                                                    </ul>
                                                </div>
                                                <div id="tabcontent">
                                                    <form target="_blank" action="" name="form1" method="get">
                                                        <iframe width="100%" height="100" scrolling="no" frameborder="0"
                                                            src="" id="google_sdo_frame"
                                                            name="google_sdo_frame"></iframe>
                                                        <div class="tab_content_search">
                                                            <div class="search-item">
                                                                <input id="id_radio_google_web" type="radio"
                                                                    name="engine" value="google_web"
                                                                    onclick="javascript: Switch('google')" />
                                                                <label for="id_radio_google_web">
                                                                    谷歌
                                                                </label>
                                                            </div>
                                                            <div class="search-item">
                                                                <input id="id_radio_baidu_web" type="radio"
                                                                    name="engine" value="baidu_web"
                                                                    onclick="javascript: Switch('baidu')" />
                                                                <label for="id_radio_baidu_web">
                                                                    百度
                                                                </label>
                                                            </div>
                                                        </div>
                                                        <input name="myselectvalue" type="hidden" value="0" />
                                                        <input name="mypage" type="hidden" value='google' />
                                                        <input name="Content" id="Content" value='' type="hidden" />
                                                    </form>
                                                </div>
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="text-align: center;" align="left">
                                        <div class="search">
                                            <input id="webKeywordID" type="text" size="10"
                                                onkeydown="g.triggerSearchLocal(event)" />
                                            <div class="search_btn" onclick="g.searchLocal()">
                                            </div>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td id="tdA" style="color: White;">
                                        <div id="idA">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <div class="footer-wrap nav-bottom">
        <span id="copyrID" style="font-family: arial; font-size: smaller;"></span>
    </div>
    <div runat="server" id="lanID">
    </div>
    <div runat="server" id="scriptDivID">
    </div>
    <script src="library.js">
    </script>
    <script src="webCollectionXHR.js">
    </script>
    <script src="reglog.js">
    </script>
    <script src="webCollectionBase.js?v=3">
    </script>
    <script src="tool/menuOnTop.js">
    </script>
    <script src="eventutil.js">
    </script>
    <script>
       function handle(event){
            var boxclick=document.getElementById('boxdis');
            var body=document.getElementById('body')
              boxclick.style.display="block";
              body.style.display='block';
              event.preventDefault();

        }
        function bodyclick(event){
            var boxclick=document.getElementById('boxdis')
            var body=document.getElementById('body')
            body.style.display='none';
            boxclick.style.display="none";
            event.stopPropagation();
        }
        //取消按钮
        function quxiao() {
            document.getElementById("duihuakuang").style.display = "none";
        }

        function queren() {
			/**
			var type_active = localStorage.getItem('type_active');
            if (type_active == 1) {
                d_queren_g()
            }
            if (type_active == 2) {
                x_queren_g()
            }
			 */

            document.getElementById("duihuakuang").style.display = "none";
        }


        // -------------------------send and get data from server--------------------
        function sendAndGetData(isAsy, url, func) {
            try {
                xmlRequest.open("GET", url, isAsy);
                xmlRequest.onreadystatechange = function () {
                    if (xmlRequest.readyState == 4 && xmlRequest.status == 200) {
                        func(xmlRequest.responseText);
                    }
                };
                xmlRequest.send();
            } catch (e) {
                return false;
            }
        }
        function postAndGetData(isAsy, url, data, func) {
            try {
                xmlRequest.open("POST", url, true);
                xmlRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
                //xmlRequest.setRequestHeader("Content-Type", "application/json");

                if (navigator.userAgent.indexOf("MSIE") > 0) {
                    xmlRequest.setRequestHeader("Connection", "close");
                }

                xmlRequest.onreadystatechange = function () {
                    if (xmlRequest.readyState == 4 && xmlRequest.status == 200) {
                        func(xmlRequest.responseText);
                    } else {
                        //xmlRequest.open("POST", url, true);
                        //xmlRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
                        //if (navigator.userAgent.indexOf("MSIE") > 0) {
                        //    xmlRequest.setRequestHeader("Connection", "close");
                        //}
                        //xmlRequest.send(data);
                        // 重新加载
                    }
                };
                xmlRequest.send(data);
            } catch (e) {
                return false;
            }
        }
        
        g.URI = lib.parseUri(window.location.href);
        g.domainDirectory = g.URI.protocol + '://' + g.URI.authority;
        g.subdir = "main";
       // var getDataURL = g.domainDirectory + "/SendDataToClient.aspx?owner=0&&flag=public&&freshParam=" + (new Date)
        //    .getTime();
        var xmlRequest = SimpleXhrFactory.CreateXhrObject();
        var g_AllData;

        if (g.dataWebTable == undefined) {
            g.dataWebTable = [];
        }
        var t = $('hostID');
         // lib.ajax({
         //       type: "GET",
         //       cache: false,
         //       url: getDataURL,
         //       dataType: "json",
         //       contentType: "application/x-www-form-urlencoded",
         //       // async: false, //异步
         //       success: function (data) {
         //           g.dataWebTable["main"] = eval('(' + data + ')');
         //           g.lastPageDataString = data;
         //       },
         //       error: function (msg) {
         //           for (var info in msg)
         //               console.log(info + " = " + msg[info]);
         //           g.tip.display(lan["32"]);
         //       }
         //});
        $("signonID").innerHTML = lan["00"];
        $("hostID").innerHTML = lan["22"];
        $("publicID").innerHTML = lan["23"];
        $("copyrID").innerHTML = lan["30"];
        var a = a;
        function tabChange(obj, id, num) {
            document.form1.myselectvalue.value = num;
            var arrayli = obj.parentNode.getElementsByTagName("li");

            for (i = 1; i < 3; i++) {
                if (obj == arrayli[i]) {
                    arrayli[i].className = "cli";
                } else {
                    arrayli[i].className = "";
                }
            }
            setContent();
            getsrc();
        }
        function Switch(page) {
            document.form1.mypage.value = page;
            lib.cookie.set("searchEngine", page, 365, "/", true);
            setContent();
            getsrc();
        }
        function getsrc() {
            //  根据cookie:searchEngine的值设置默认的搜索工具
            var page = lib.cookie.get("searchEngine");
            if (page == undefined) page = "baidu";
            var ty = document.form1.myselectvalue.value;
            var t = new Date().getTime();
            document.getElementById("google_sdo_frame").src = page + '.html?ty=' + ty + "&t=" + t;
            $("id_radio_" + page + "_web").checked = "checked";
        }
        function setContent() {
            var Content = frames["google_sdo_frame"].document.getElementById("sea").value;
            document.form1.Content.value = Content;
        }
        getsrc();
        g.user.setUserInfo();
        g.initialState();
        g.page = new B.Page();
        g.page.bindData(g.dataWebTable["main"]);
        g.page.createDom();
        g.page.refresh();


    </script>
    <script src="weblazy.js?v=4">
    </script>
    <!-- <script src="rightMenu.js"></script>//鼠标右键。 -->
    <!---coding------- -->
    <!--
                <script src="tool/menuOnLeft.js">
				</script>-->
</body>
</html>